Skip to content

refactor(build): replace the TypeScript search index with a page manifest - #164

Merged
oto-macenauer-absa merged 1 commit into
masterfrom
feature/117-page-manifest
Nov 17, 2026
Merged

oto-macenauer-absa merged 1 commit into
masterfrom
feature/117-page-manifest

Conversation

@oto-macenauer-absa

@oto-macenauer-absa oto-macenauer-absa commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What

First of three PRs that rebuild the MCP server (#117) as a standalone Python service. The ADR comes in the next PR (docs/adr/0001-mcp-server.md). The TypeScript implementation (#119, #129) is closed as superseded.

The Python indexer must not import the build's JavaScript. So the build no longer indexes pages; it writes a manifest of what it published. That manifest, plus the HTML under dist/, is the only interface between the Node build and the Python server.

Stack: #164 (this PR, page manifest) ← #165 (Python MCP server) ← #166 (deployment).

Changes

  • New build step 3b (scripts/page-manifest.js): writes dist/_kb/pages.json.
    • Its shape is scripts/page-manifest.schema.json (draft-07, no extra properties).
    • It has one entry per published route: route, dist file, manifest title, section, and the page's app.
    • Each app carries its name, description, tags, kind (artifact or iframe), url and source version.
    • 404.html is excluded, and routes are deduplicated (index.html wins).
  • Removed, from the merged feat(mcp): generate a search index and serve it from ports and adapters #128:
    • the TypeScript index builder (mcp/, scripts/build-mcp.js);
    • its in-memory adapters, tests and fixtures;
    • the ESLint/Prettier/tsc lint tooling that only covered that code, including the CI lint job and those devDependencies.
  • .dockerignore keeps dist/_kb out of the nginx image.
  • Tests: new cases in tests/build-integrity.spec.js check that:
    • the manifest validates against its schema;
    • it lists the expected apps, with iframe kind and url;
    • routes are unique and sorted, and every listed file exists;
    • sectioned pages carry their titles.
  • CLAUDE.md: documents the new pipeline step and file.

Release Notes

  • The site build writes dist/_kb/pages.json, a manifest of every published page and its app. The Python MCP server's indexer reads it.
  • Removed the TypeScript MCP search index and the lint tooling that only covered it.

Verification

  • npm test: all passed
  • npm audit --omit=dev --audit-level=high: clean

Part of #117

🤖 Generated with Claude Code

…fest

The MCP server is moving to a standalone Python service (docs/adr/0001-mcp-server.md).
Its indexer must not import the build's JavaScript, so the build now describes
what it published instead of indexing it:

- step 3b writes dist/_kb/pages.json (scripts/page-manifest.schema.json): every
  published page with its route, dist file, manifest title and section, and each
  app's name, description, tags, kind and source version;
- the TypeScript index builder, in-memory adapters, their tests and the
  ESLint/Prettier/tsc lint tooling that only covered them are removed.

Part of #117

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oto-macenauer-absa
oto-macenauer-absa merged commit 8827920 into master Nov 17, 2026
9 checks passed
@oto-macenauer-absa
oto-macenauer-absa deleted the feature/117-page-manifest branch November 17, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants